<?php

namespace app\index\service;

use app\index\dao\ConsultingServerDao;
use app\index\model\UM as UM;
use think\Collection;

/**
 * Class MoreServerService
 * @package app\consulting\service
 */
class MoreServerService
{
    // dao
    private ConsultingServerDao $consultingServerDao;

    public function __construct(ConsultingServerDao $consultingServerDao)
    {
        $this->consultingServerDao = $consultingServerDao;
    }

    /**
     * 列表
     * @param \app\index\model\UM|null $user
     * @param int|null $page
     * @param int|null $page_size
     * @return Collection
     */
    public function index(?UM $user, ?int $page = null, ?int $page_size = null): Collection
    {
        //这里如果要修改查询，建议把查询放到dao层去
        return $this->consultingServerDao->selectConsultingMoreServer($page, $page_size);
    }

}
